﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RbacPermissionSystem.Application
{
    public enum Code
    {
        Success,
        Failed
    }

    public class ResultDto
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public Code Code { get; set; }

        /// <summary>
        /// 返回消息
        /// </summary>
        public string Message { get; set; }
    }

    public class ResultDto<TData> : ResultDto
    {
        public TData Data { get; set; }
    }
}
